home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
352_01
/
vlistpop.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-04-25
|
373 b
|
19 lines
// VLISTPOP.CPP
// code for Vlist::pop(), removes top item from vlist stack.
#include "dblib.h"
void Vlist::pop ( void )
{
void **vl = list;
register int vn =n;
if ( vn>0 )
{
n = --vn;
free ( vl[vn] );
vl [vn] = NULL;
}
return; /* Vlist::pop() */
}
//----------------- end VLISTPOP.CPP -------------------